#ifndef _COIN_H_
#define _COIN_H_
#include <d3dx9.h>
#include "Sprite.h"
#include "CGame.h"
#include "Object.h"
#include "Global.h"
#include "Texture.h"

#define COIN_GRAVITY	0.01
class Coin : public Object
{
public:
	float _yPre;

	int _numberCoin;		//so luong coin
	bool isHidden;			//coin an hay hien

public:
	Texture * _texture;
	Coin(int id, float x, float y, int type,int state);
	~Coin(void);
	void Render(int vpX, int vpY);
	void Update(list<Object *> *_list, float time);
	void changeState(int state);
	OBJECT_TYPE getObjectType();
};

#endif